package day05;

public class txt2 {
    public static void main(String[] args) {
        int i = 1;
        String rs = i + ",";
        while (i < 10) {
            i++;
            rs = rs + i;

            if (i < 10) {
                rs = rs + ",";
            }
        }
        System.out.println(rs);

    }
}
